package com.kandinfo.base.security.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kandinfo.base.admin.domain.BaseDomain;

@Entity
@Table(name = "user_info")
public class UserInfo extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 8305309155719167948L;

    @Column(name = "user_id")
    private Long userId; // 关联userId

    @Column(name = "born_date")
    private Date bornDate; // 出生年月

    @Column(name = "familly_name")
    private String famillyName; // 家属姓名（userType为病人时可填）

    @Column(name = "familly_mobile")
    private String famillyMobile; // 家属电话（userType为病人时可填）

    @Column(name = "nick_name")
    private String nickName; // 昵称

    @Column(name = "user_type")
    private Integer userType;// 1-医生 2-病人 3-家属 其他待加

    @Column(name = "avatar_url")
    private String avatarUrl;// 用户头像

    @Column(name = "invite_code")
    private String inviteCode;// 邀请码（预留）

    @Column(name = "information_complete")
    private Integer informationComplete;// 录入信息已完成 0-未完成 1-已完成

    @Column(name = "user_exercise_time")
    private String userExerciseTime; // 用户做题时间

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public Integer getInformationComplete() {
        return informationComplete;
    }

    public void setInformationComplete(Integer informationComplete) {
        this.informationComplete = informationComplete;
    }

    public String getUserExerciseTime() {
        return userExerciseTime;
    }

    public void setUserExerciseTime(String userExerciseTime) {
        this.userExerciseTime = userExerciseTime;
    }

    public String getFamillyName() {
        return famillyName;
    }

    public void setFamillyName(String famillyName) {
        this.famillyName = famillyName;
    }

    public String getFamillyMobile() {
        return famillyMobile;
    }

    public void setFamillyMobile(String famillyMobile) {
        this.famillyMobile = famillyMobile;
    }

    public Date getBornDate() {
        return bornDate;
    }

    public void setBornDate(Date bornDate) {
        this.bornDate = bornDate;
    }

}
